<template>
	<view>
		<view class="relative-border">
			<view v-for="(item,index) in dataList" :key="index" :class="{'invencurrent':(currentIndex === index)}">
				<view class="invent-listcon" @click="invent(index)">
					<view class="invent-oddnumber">
						{{item.title}}
					</view>
					<view class="invent-content">
						<view class="invent-content-top">
							{{item.name}}
						</view>
						<view class="invent-content-top">
							{{item.number}}
						</view>
						<view class="invent-content-top">
							{{item.issuedquantity}}
						</view>
						<view class="invent-content-top">
							{{item.model}}
						</view>
						<view class="invent-content-top">
							{{item.sourcetype}}
						</view>
					</view>
				</view>
			</view>
		</view>

		<!-- 按钮 -->
		<view class="flexinven-button">
			<u-row gutter="16" class="flexinven-con">
				<u-col span="3">
					<view class="flexinven-flex">选择</view>
				</u-col>
				<u-col span="3">
					<view class="flexinven-flex">发料</view>
				</u-col>
				<u-col span="3">
					<view class="flexinven-flex">查询现存量</view>
				</u-col>
				<u-col span="3">
					<view class="flexinven-flex">物料请购</view>
				</u-col>
			</u-row>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList: [{
					title: '物料编码: 02010009',
					name: '物料名称: 批次号1',
					number: '数量: 10',
					issuedquantity: '已出库数量: 0',
					model: '规格型号: ',
					sourcetype: '来源类型: 计划物料'
				}]
			};
		},
		methods: {}
	};
</script>

<style lang="scss" scoped>
	.invencurrent {
		background-color: #f3f2f5;
	}
</style>
